﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using Telerik.Windows.Controls;

namespace DIST.LR.ZHJG.Controls.Chart
{
    public class ucMultiBarViewModel : ViewModelBase
    {
        public IEnumerable<PopulationData> DataSource1
        {
            get
            {
                List<PopulationData> data = new List<PopulationData>();

                data.Add(new PopulationData(82500000, "Germany"));
                data.Add(new PopulationData(43400000, "Spain"));
                data.Add(new PopulationData(60500000, "France"));
                data.Add(new PopulationData(58100000, "Italy"));

                return data;
            }
        }

        public IEnumerable<VehicleData> DataSource2
        {
            get
            {
                List<VehicleData> data = new List<VehicleData>();

                data.Add(new VehicleData(54500000, "Germany"));
                data.Add(new VehicleData(27600000, "Spain"));
                data.Add(new VehicleData(37100000, "France"));
                data.Add(new VehicleData(43100000, "Italy"));

                return data;
            }
        }

        public IEnumerable<RoadNetworkData> DataSource3
        {
            get
            {
                List<RoadNetworkData> data = new List<RoadNetworkData>();

                data.Add(new RoadNetworkData(626981, "Germany"));
                data.Add(new RoadNetworkData(666204, "Spain"));
                data.Add(new RoadNetworkData(1002486, "France"));
                data.Add(new RoadNetworkData(305388, "Italy"));

                return data;
            }
        }

    }

    public class PopulationData
    {
        private long _population;
        private string _country;

        public PopulationData(long population, string country)
        {
            this._population = population;
            this._country = country;
        }

        public long Population
        {
            get
            {
                return this._population;
            }
            private set
            {
                this._population = value;
            }
        }

        public string Country
        {
            get
            {
                return this._country;
            }
            private set
            {
                this._country = value;
            }
        }
    }

    public class RoadNetworkData
    {
        private long _roadNetwork;
        private string _country;

        public RoadNetworkData(long roadNetwork, string country)
        {
            this._roadNetwork = roadNetwork;
            this._country = country;
        }

        public long RoadNetwork
        {
            get
            {
                return this._roadNetwork;
            }
            private set
            {
                this._roadNetwork = value;
            }
        }

        public string Country
        {
            get
            {
                return this._country;
            }
            private set
            {
                this._country = value;
            }
        }
    }

    public class VehicleData
    {
        private long _vehicles;
        private string _country;

        public VehicleData(long vehicles, string country)
        {
            this._vehicles = vehicles;
            this._country = country;
        }

        public long Vehicles
        {
            get
            {
                return this._vehicles;
            }
            private set
            {
                this._vehicles = value;
            }
        }

        public string Country
        {
            get
            {
                return this._country;
            }
            private set
            {
                this._country = value;
            }
        }
    }

}
